diff options
| author | Adrien Hopkins <[email protected]> | 2022-08-02 13:13:27 -0500 |
|---|---|---|
| committer | Adrien Hopkins <[email protected]> | 2022-08-02 13:13:27 -0500 |
| commit | 4e91ea2bea37c2772f06e4617f6b72ebc453ac2e (patch) | |
| tree | 8616e416fa69801a9ddcd3f5f7e588cb653a099b /src/routes/invoice/[id].js | |
| parent | 66e60083514a37f7c38d9418e0c5cab3535070cf (diff) | |
| parent | 0676ad3f9afa2036dccce7165478ea0ba09dae1d (diff) | |
| download | coinos-ui-4e91ea2bea37c2772f06e4617f6b72ebc453ac2e.tar.gz coinos-ui-4e91ea2bea37c2772f06e4617f6b72ebc453ac2e.zip | |
Merge branch 'master' into i18n
Diffstat (limited to 'src/routes/invoice/[id].js')
| -rw-r--r-- | src/routes/invoice/[id].js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/routes/invoice/[id].js b/src/routes/invoice/[id].js new file mode 100644 index 00000000..a58d02a1 --- /dev/null +++ b/src/routes/invoice/[id].js @@ -0,0 +1,14 @@ +import { get } from '$lib/utils'; + +export async function GET({ params }) { + let { id } = params; + let { + amount, + rate, + status, + text, + user: { username } + } = await get(`/invoice?uuid=${id}`); + + return { body: { amount, id, rate, username, status, text } }; +} |
